package com.leesche.zcsp.node.web.dao;

import com.leesche.zcsp.node.web.model.PubDiscountCode;
import com.leesche.zcsp.node.web.model.PubDiscountCodeCriteria;
import com.leesche.zcsp.node.web.service.impl.data.read.InfoDiscountCountDto;
import com.leesche.zcsp.node.web.service.impl.data.read.PubDiscountCodeDto;
import com.leesche.zcsp.node.web.service.impl.data.read.QueryPubDiscountCodeCondition;

import java.util.List;

public interface PubDiscountCodeDao extends BaseDao<PubDiscountCode, PubDiscountCodeCriteria,PubDiscountCodeDto,QueryPubDiscountCodeCondition, Long> {

    Integer selectCheck(QueryPubDiscountCodeCondition codeCondition);

    PubDiscountCode selectByModel(QueryPubDiscountCodeCondition codeCondition);

    int selectCodeNum(QueryPubDiscountCodeCondition codeCondition);

    List<InfoDiscountCountDto> selectCodeTypeNum(QueryPubDiscountCodeCondition codeCondition);

    List<PubDiscountCode> findListByCondition(QueryPubDiscountCodeCondition codeCondition);

    int insertBatch(List<PubDiscountCode> list);
}